import request from '@/utils/request'

// 查询阿米巴科目列表
export function listAmoebaSubject(query) {
  return request({
    url: '/system/amoebaSubject/list',
    method: 'get',
    params: query
  })
}

// 查询阿米巴科目详细
export function getAmoebaSubject(id) {
  return request({
    url: '/system/amoebaSubject/' + id,
    method: 'get'
  })
}
// 查询阿米巴科目详细主子表
export function getAmoebaSubjectAll(id) {
  return request({
    url: '/system/amoebaSubject/getAmoebaSubjectAll/' + id,
    method: 'post'
  })
}

// 新增阿米巴科目
export function addAmoebaSubject(data) {
  return request({
    url: '/system/amoebaSubject',
    method: 'post',
    data: data
  })
}
// 新增或修改阿米巴科目
export function insertOrUpdate(data) {
  return request({
    url: '/system/amoebaSubject/insertOrUpdate',
    method: 'post',
    data: data
  })
}

// 修改阿米巴科目
export function updateAmoebaSubject(data) {
  return request({
    url: '/system/amoebaSubject',
    method: 'put',
    data: data
  })
}

// 删除阿米巴科目
export function delAmoebaSubject(id) {
  return request({
    url: '/system/amoebaSubject/' + id,
    method: 'delete'
  })
}
